package com.aqgj.pubCode.dao;

/**
 * Created by zhg on 2017/9/26.
 */


import com.aqgj.pubCode.bean.CodeTable;
import com.aqgj.util.BaseDaoImpl;
import org.springframework.stereotype.Repository;



@Repository("codeTableDao")
public class CodeTableDao extends BaseDaoImpl<CodeTable> {
//    public CodeTableDao() {
//    }
//
//    public boolean isCodeExist(String code, String id) {
//        String condition = "";
//        if(StringUtils.isNotEmpty(id)) {
//            condition = "id!='" + id + "' and ";
//        }
//        return ((Long)this.createQuery("select count(*) from CodeTable where " + condition + " code=?", new Object[]{code})).longValue() > 0L;
//    }
}
